
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';

@Injectable()
export class Httj52v4ComponentViewmodel extends ViewModel {
    public bindingPath = '/httjs';
    // farrisDataGrid列集合定义 在对应component中赋值
    public httj_52v4_dataGridColumns:any;
    // datGrid 列集合名称 用以bindData使用
    public dataGridColumnsName:string;

    public dom = {
  "httj-52v4-dataGrid": {
    "type": "DataGrid",
    "resourceId": "httj-52v4-dataGrid",
    "visible": {
      "useQuote": false,
      "isExpression": false,
      "value": true
    },
    "id": "httj-52v4-dataGrid",
    "readonly": {
      "useQuote": false,
      "isExpression": false,
      "value": false
    },
    "fields": [
      {
        "type": "GridField",
        "resourceId": "htbh_f2766c76_464f",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "htbh_f2766c76_464f",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "htbh",
          "fullPath": "htbh",
          "isExpression": false,
          "value": "htbh"
        },
        "dataField": "htbh",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "合同编号",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "htbh_f2766c76_bah0",
          "defaultI18nValue": "合同编号",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "htbh_f2766c76_bah0",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "htbh",
            "fullPath": "htbh",
            "isExpression": false,
            "value": "htbh"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "htmc_34193c7e_dqn3",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "htmc_34193c7e_dqn3",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "htmc",
          "fullPath": "htmc",
          "isExpression": false,
          "value": "htmc"
        },
        "dataField": "htmc",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "合同名称",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "htmc_34193c7e_o9kn",
          "defaultI18nValue": "合同名称",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "htmc_34193c7e_o9kn",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "htmc",
            "fullPath": "htmc",
            "isExpression": false,
            "value": "htmc"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "htqdrq_8046b93d_ir26",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "htqdrq_8046b93d_ir26",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "htqdrq",
          "fullPath": "htqdrq",
          "isExpression": false,
          "value": "htqdrq"
        },
        "dataField": "htqdrq",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "合同签订日期",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "htqdrq_8046b93d_1zkb",
          "defaultI18nValue": "合同签订日期",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "htqdrq_8046b93d_1zkb",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "htqdrq",
            "fullPath": "htqdrq",
            "isExpression": false,
            "value": "htqdrq"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "htqdr_6e3f794c_ch7s",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "htqdr_6e3f794c_ch7s",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "htqdr",
          "fullPath": "htqdr",
          "isExpression": false,
          "value": "htqdr"
        },
        "dataField": "htqdr",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "合同签订人",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "htqdr_6e3f794c_p10e",
          "defaultI18nValue": "合同签订人",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "htqdr_6e3f794c_p10e",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "htqdr",
            "fullPath": "htqdr",
            "isExpression": false,
            "value": "htqdr"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      }
    ],
    "multiSelect": false,
    "showLineNumber": false,
    "lineNumberTitle": "#",
    "groupTotalText": "Total",
    "filterable": false,
    "groupable": false,
    "rowClass": ""
  }
};
    @NgCommand({
        name: 'httj52v4componentviewmodelAddItem1',
        params: {
        }
    })
    public httj52v4componentviewmodelAddItem1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'httj52v4componentviewmodelRemoveItem1',
        params: {
            id: '{DATA~/#{httj-52v4-component}/httjs/id}'
        },
        paramDescriptions: {
            id: { type: 'string' }
        }
    })
    public httj52v4componentviewmodelRemoveItem1(commandParam?: any): Observable<any> { return; }

}